package com.itheima.day04.myinnerclass.test3;

public class Test {
    public static void main(String[] args) {
        Outer o1 = new Outer();
        o1.method();

    }
}

class Outer {
    int a = 1;

    public void method(){
        int b = 2;
        class Inner {
            public void show(){
                System.out.println(a);
                System.out.println(b);
            }
        }

        Inner i = new Inner();
        i.show();
    }

}


